package com.exercise.module.common.dao.mapper;

import com.exercise.module.common.dao.entity.SysDocFile;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysDocFileMapper {
    int deleteByPrimaryKey(String id);

    int insert(SysDocFile record);

    int insertSelective(SysDocFile record);

    SysDocFile selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(SysDocFile record);

    int updateByPrimaryKey(SysDocFile record);

    SysDocFile selectByPath(String filePath);

    SysDocFile selectByChecksum(String fileChecksum);

    List<SysDocFile> selectByPrimaryKeys(@Param("ids") String[] ids);

    int countByFileAddress(String fileAddress);

    SysDocFile selectByFileAddress(@Param("fileAddress")String fileAddress);
}